/*
package com.noah.project

import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.scheduling.annotation.EnableAsync
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
import java.util.concurrent.Executor

@Configuration
@EnableAsync
class SpringAsyncConfig {

    */
/** Set the ThreadPoolExecutor's core pool size.  *//*

    private val corePoolSize = 10
    */
/** Set the ThreadPoolExecutor's maximum pool size.  *//*

    private val maxPoolSize = 20
    */
/** Set the capacity for the ThreadPoolExecutor's BlockingQueue.  *//*

    private val queueCapacity = 10

    @Bean
    fun mySimpleAsync(): Executor {
        val executor = ThreadPoolTaskExecutor()
        executor.corePoolSize = corePoolSize
        executor.maxPoolSize = maxPoolSize
        executor.setQueueCapacity(queueCapacity)
        executor.threadNamePrefix = "MySimpleExecutor-"
        executor.initialize()
        return executor
    }

}*/
